package pattern.strategy.promotion;

/**
 * 促销活动
 * @author juxiaojun
 * @since 2019-05-02
 */
public class PromotionActivity {
    private PromotionStrategy promotionStrategy;
    public PromotionActivity(PromotionStrategy promotionStrategy){
        this.promotionStrategy=promotionStrategy;
    }
    public void execute(){
        this.promotionStrategy.doPromotion();
    }
}
